import App from './App'
import store from 'store/index.js'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

//引入uview
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);

//注册全局组件 
import Tabbar from "@/components/tabbar.vue"
Vue.component("tabbar", Tabbar);
Vue.prototype.$bus = new Vue()
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
